
function hasPermission(permission) {
  let storeUser = useUserStore();
    return storeUser.permissions.some(v => v === permission) || storeUser.adminTag;
}

function hasRole(role) {
  let storeUser = useUserStore();
  return storeUser.roles.some(v => v === role) || storeUser.adminTag;
}

export default {
  hasPermission,
  hasRole
}